<%@page import="com.cn.entity.User"%>
<%@page import="com.cn.entity.Zhenduan"%>
<%@page import="com.cn.entity.Department"%>
<%@page import="java.util.List"%>
<%@page import="com.cn.dao.DepartmentDao"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>北京医院</title>
</head>

<body>

<%Object o=session.getAttribute("zhenduan");


%>
<%=o %>

<%
if (o!=null){
	Zhenduan zhenduan=(Zhenduan)o;

	
	User user=zhenduan.getUser();
        
%>

<h4>挂号单</h4>
<h6>注意：挂号单只在当日有效</h6>
<table>

<tr>
<td>患者姓名</td>

<td><%=user.getXingming() %> </td>
</tr>

<tr>
<td>证件号码</td>

<td><%=user.getIdentity() %></td>

</tr>
<tr>
<td>挂号时间</td>

<td><%=zhenduan.getDate() %></td>

</tr>
<tr>
<td>科室</td>

<td><%=zhenduan.getDepartment().getDepartmentname() %></td>

</tr>
</table>







<table>



<tr> <td>    

诊断结果
  

</td>
</tr>
<tr> <td>  </td></tr>
<tr> <td>  </td></tr>
<tr><td>医生建议</td></tr>

<tr> <td>  </td></tr>
<tr> <td>  </td></tr>
<tr> <td>  医生签名</td></tr>
<tr> <td>  </td></tr>
</table> 

<%}
else {%>
<p>挂号失败</p> <%} %>   
</body>





</html>